package com.t7;

/**
 * Created by xuyiwei on 2018/7/18.
 */
class E13Father{
    public void append(byte b){
        System.out.println("byte");
    }

    public void append(short b){
        System.out.println("short");
    }

    public void append(int b){
        System.out.println("int");
    }
}

class E13Son extends E13Father{
    public void append(long b){
        System.out.println("long");
    }
}
public class E13 {
    public static void main(String[] args) {
        E13Son e13Son = new E13Son();
        short s = 1;
        e13Son.append(s);
        e13Son.append(1);
        e13Son.append(1l);

    }
}
